<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="../../css/bootstrap.min.css">
<link rel="stylesheet" href="../../css/font-awesome.min.css">
<link rel="stylesheet" href="../../plugins/jqgrid/ui.jqgrid-bootstrap.css">
<link rel="stylesheet" href="../../plugins/ztree/css/metroStyle/metroStyle.css">
<link rel="stylesheet" href="../../css/main.css">
<link rel="stylesheet" href="../../assets/css/amazeui.min.css">
<script src="../../libs/jquery.min.js" type="text/javascript"></script>
<script src="../../plugins/layer/layer.js" type="text/javascript"></script>
<script src="../../libs/bootstrap.min.js" type="text/javascript"></script>
<script src="../../libs/vue.min.js" type="text/javascript"></script>
<script src="../../plugins/jqgrid/grid.locale-cn.js" type="text/javascript"></script>
<script src="../../plugins/jqgrid/jquery.jqGrid.min.js" type="text/javascript"></script>
<script src="../../plugins/ztree/jquery.ztree.all.min.js" type="text/javascript"></script>
<script src="../../js/common.js" type="text/javascript"></script>
<script src="../../assets/js/amazeui.min.js" type="text/javascript"></script>
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-12">
				<input id="apportionSd" class="form-control1" data-am-datepicker="{format: 'yyyy-mm', viewMode: 'months', minViewMode: 'months'}" readonly type="text" placeholder="分摊开始月份">
				<input id="apportionEd" class="form-control1" data-am-datepicker="{format: 'yyyy-mm', viewMode: 'months', minViewMode: 'months'}" readonly type="text" placeholder="分摊结束月份">
				<input id="collectionDaysSd" class="form-control1" data-am-datepicker readonly type="text" placeholder="收款开始日期">
				<input id="collectionDaysEd" class="form-control1" data-am-datepicker readonly type="text" placeholder="收款结束日期">
	            <input type="text" class="form-control1" v-model="q.buildIds" placeholder="楼号"/>
	            <input type="text" class="form-control1" v-model="q.assetIds" placeholder="房号"/>
				<input type="text" class="form-control1" v-model="q.contractNo" placeholder="合同号"/>
				<input type="text" class="form-control1" v-model="q.billNo" placeholder="收款单据"/>
				<input type="text" class="form-control1" v-model="q.renter" placeholder="租赁人"/>
				<select multiple data-am-selected>
					<option value="租金">租金</option>
					<option value="物业费">物业费</option>
					<option value="管理费">管理费</option>
					<option value="公共能耗费">公共能耗费</option>
					<option value="停车费">停车费</option>
					<option value="租场费">租场费</option>
					<option value="其他">其他</option>
				</select>
			</div>
			<a class="btn btn-primary" @click="query" ><i class="fa fa-search"></i>&nbsp;查询</a>
			<a v-if="hasPermission('comapportion:save')" class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			<a v-if="hasPermission('comapportion:update')" class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			<a v-if="hasPermission('comapportion:delete')" class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			<a class="btn btn-primary" @click="exportExcel" ><i class="fa fa-download"></i>&nbsp;导出</a>
		</div>
		<div id="jqGridTable">
		    <table id="jqGrid"></table>
		    <div id="jqGridPager"></div>
		</div>
    </div>
    
    <div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal" style="width:100%">
			<div class="form-group" style="display:none">
			   	<div class="col-sm-2 control-label">序号：</div>
			   	<div class="col-sm-10">
			      	<input type="text" class="form-control" v-model="comCollectionRecord.serialNo" placeholder="序号"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label" style="width:11%">房号：</div>
			    <div class="col-sm-10" style="width:200px">
					<input type="text" class="form-control" v-model="comCollectionRecord.assetIds" placeholder="房号" readonly="readonly"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label" style="width:11%">合同号：</div>
			   	<div class="col-sm-10" style="width:200px">
			      	<input type="text" class="form-control" v-model="comCollectionRecord.contractNo" placeholder="合同号" readonly="readonly"/>
			    </div>
			</div>
			<div class="form-group">
			   	<div class="col-sm-2 control-label" style="width:11%">收据编号：</div>
			   	<div class="col-sm-10" style="width:200px">
			      	<input type="text" class="form-control" v-model="comCollectionRecord.billNo" placeholder="收据编号" readonly="readonly"/>
			    </div>
			</div>
			<table id="table" border="1" cellspacing="0" cellpadding="0" style="text-align:center;margin:20px 40px">
				<tr id="firstTr" style="height:50px;background-color:#e5e8f3">
					<td style="width:90px">周期</td>
					<td style="width:90px">租金</td>
					<td style="width:90px">物业费</td>
					<td style="width:90px">管理费</td>
					<td style="width:90px">公共能耗费</td>
					<td style="width:90px">停车费</td>
					<td style="width:90px">租场费</td>
					<td style="width:90px">其他</td>
				</tr>
			</table>
			<div style="float:left;margin-left:40px;font-size:16px;">
				备注：
			</div>
			<div>
				<textarea maxlength="1000" style="width:584px;height:126px" v-model="comCollectionRecord.remark" placeholder="请输入调整的原因"></textarea>
			</div>
			<div class="form-group" style="margin-top:10px">
				<div class="col-sm-2 control-label"></div> 
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>

<script src="../../js/modules/com/comapportion.js"></script>
</body>
</html>